package com.zhijian.medical.entity.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "常规病理-病人-样本异常")
public class RoutinePatientException {

    @ApiModelProperty("id")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("异常原因")
    private String exReason;

    @ApiModelProperty("处理类型")
    private String handleType;

    @ApiModelProperty("处理时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date handleTime;

    @ApiModelProperty("联系人")
    private String relationMem;

    @ApiModelProperty("联系方式")
    private String relationPhone;

    @ApiModelProperty("异常类型 0 离体异常 1 固定异常")
    private Integer exType;

    @ApiModelProperty("病人ID")
    private Long patientId;
}
